package com.yq.light.data.code.service.impl;

import com.yq.light.commons.code.entity.KnowledgeDb;
import com.yq.light.data.code.dao.DataDao;
import com.yq.light.data.code.service.DataService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("dataService")
@Transactional
@Slf4j
public class DataServiceImpl implements DataService {

    @Autowired
    private DataDao dataDao;

    @Override
    public List<KnowledgeDb> dataList(String ownerAccount) {
        List<KnowledgeDb> knowledgeDbList = dataDao.dataList(ownerAccount);
        return knowledgeDbList;
    }
}
